<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>export 和 import</title>
</head>
<body>
    <script type="module">
        //模块引入
        // import * as ms from './exp.js'
        // import ms from './exp.js'
        // let name = ms.name
        // console.log(name);
        //解构引入
        import { name, fn } from './exp.js'
        console.log(name);
        console.log(fn());
    </script>
</body>
</html>